import React from 'react';

class List extends React.Component {
    render() {
        const lists = this.props.num;
        const listItems = lists.map( res => 
            <li key={res.toString()}> {res} </li>
        )
        return (
            <ul>
            { listItems }
            </ul>
        )
    }
}

export { List }